/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asteroide;

import java.awt.Polygon;
import java.awt.Rectangle;

/**
 *
 * @author Jose Carlos Palma
 */
public class Ship extends BaseVectorShape {

    private int[] shipx = {-6, -3, 0, 3, 6, 0};
    private int[] shipy = {6, 7, 7, 7, 6, -7};
    private static final int LENGTH = 6;

    public Ship() {
        setShape(new Polygon(shipx, shipy, LENGTH));
        setAlive(true);
    }

    public Rectangle getBounds() {
        return new Rectangle((int) getX() - 6, (int) getY() - 6, 12, 12);
    }
}
